﻿using System.Web.Mvc;
using lab03_mastermodelabstractcontroller.Models;

namespace lab03_mastermodelabstractcontroller.Controllers
{
    public class BaseController: Controller
    {
        protected override ViewResult View(string viewName, string masterName, object model)
        {
            if (model == null || !(model is MasterModel))
                model = new BasicModel();

            return base.View(viewName, masterName, model);
        }
    }
}
